package treemodel.container.wrapped;

import treemodel.container.WrappedContainer;
import treemodel.line.GeneralLine;
import treemodel.line.IndentedLine;
import treemodel.line.MarkedLine;

/**
 * Created by Pavel Nikolaev
 */
public final class ListInstance extends WrappedContainer {
    private int myMark = 0;

    public void setMark(int mark) {
        myMark = mark;
    }

    @Override
    public GeneralLine createLine() {
        return (myNodes.isEmpty()) ? new MarkedLine(myMark) : new IndentedLine();
    }
}
